import 'package:get/get.dart';

import '../modules/homework/bindings/add_homework_binding.dart';
import '../modules/homework/views/add_homework_view.dart';
import 'package:school_assistant_m/app/modules/course/bindings/course_binding.dart';
import 'package:school_assistant_m/app/modules/course/views/course_view.dart';
import 'package:school_assistant_m/app/modules/home/bindings/home_binding.dart';
import 'package:school_assistant_m/app/modules/home/views/home_view.dart';
import 'package:school_assistant_m/app/modules/homework/bindings/homework_binding.dart';
import 'package:school_assistant_m/app/modules/homework/views/homework_view.dart';
import 'package:school_assistant_m/app/modules/image-upload/bindings/image_upload_binding.dart';
import 'package:school_assistant_m/app/modules/image-upload/views/image_upload_view.dart';
import 'package:school_assistant_m/app/modules/login/bindings/login_binding.dart';
import 'package:school_assistant_m/app/modules/login/views/login_view.dart';
import 'package:school_assistant_m/app/modules/mine/bindings/edit_password_binding.dart';
import 'package:school_assistant_m/app/modules/mine/bindings/mine_binding.dart';
import 'package:school_assistant_m/app/modules/mine/bindings/settings_binding.dart';
import 'package:school_assistant_m/app/modules/mine/views/edit_password_view.dart';
import 'package:school_assistant_m/app/modules/mine/views/mine_view.dart';
import 'package:school_assistant_m/app/modules/mine/views/settings_view.dart';

import '../modules/course/bindings/add_course_binding.dart';
import '../modules/course/bindings/course_detail_binding.dart';
import '../modules/course/views/add_course_view.dart';
import '../modules/course/views/course_detail_view.dart';

part 'app_routes.dart';

class AppPages {
  AppPages._();

  // ignore: constant_identifier_names
  static const INITIAL = Routes.LOGIN;

  static final routes = [
    GetPage(
      name: _Paths.HOME,
      page: () => HomeView(),
      binding: HomeBinding(),
    ),
    GetPage(
      name: _Paths.LOGIN,
      page: () => LoginView(),
      binding: LoginBinding(),
    ),
    GetPage(
      name: _Paths.COURSE,
      page: () => CourseView(),
      binding: CourseBinding(),
    ),
    GetPage(
      name: _Paths.HOMEWORK,
      page: () => HomeworkView(),
      binding: HomeworkBinding(),
    ),
    GetPage(
      name: _Paths.MINE,
      page: () => MineView(),
      binding: MineBinding(),
    ),
    GetPage(
      name: _Paths.ADD_COURSE,
      page: () => AddCourseView(),
      binding: AddCourseBinding(),
    ),
    GetPage(
      name: _Paths.IMAGE_UPLOAD,
      page: () => ImageUploadView(),
      binding: ImageUploadBinding(),
    ),
    GetPage(
      name: _Paths.COURSE_DETAIL,
      page: () => CourseDetailView(),
      binding: CourseDetailBinding(),
    ),
    GetPage(
      name: _Paths.SETTINGS,
      page: () => SettingsView(),
      binding: SettingsBinding(),
    ),
    GetPage(
      name: _Paths.EDIT_PASSWORD,
      page: () => EditPasswordView(),
      binding: EditPasswordBinding(),
    ),
    GetPage(
      name: _Paths.ADD_HOMEWORK,
      page: () => AddHomeworkView(),
      binding: AddHomeworkBinding(),
    ),
  ];
}
